<template>
  <div>
    <ul>
      <li v-for="item in data" :key="item.id">
        <slot :data="item">
          {{ item.name }}
        </slot>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'MyInfo',
  props: {
    data: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style>

</style>
